Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Mock tests for SshnpCore #565

Merged
merged 16 commits into from
Nov 14, 2023
Merged

test: Mock tests for SshnpCore #565

merged 16 commits into from
Nov 14, 2023

Conversation

XavierChanth
Copy link
Member

- What I did

  • Stubbed and mocked the constructor + initialization of SshnpCore

- How I did it

- How to verify it

- Description for the changelog
test: Mock tests for SshnpCore

@XavierChanth XavierChanth requested a review from gkc November 13, 2023 22:22
gkc
gkc previously approved these changes Nov 14, 2023
Copy link
Contributor

@gkc gkc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally I prefer to generate keypairs etc in test code rather than hard-coding but otherwise LGTM, nice work

@@ -0,0 +1,14 @@
class TestingKeyPair {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just generate at test time?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can open another PR which generates the temp keys later on, it was quicker for me to hard code.

@XavierChanth
Copy link
Member Author

XavierChanth commented Nov 14, 2023

Can I get another review @gkc? Had to address a merge conflict.

@XavierChanth XavierChanth merged commit e7f3719 into trunk Nov 14, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants